package com.gcd.alienandwheel;

import com.badlogic.gdx.utils.MathUtils;

/**
 *
 * @author Rezan Achmad
 */
public class Vector2 extends com.badlogic.gdx.math.Vector2 {

    public Vector2() {
        super();
    }

    public Vector2(Vector2 v) {
        super(v);
    }

    public Vector2(float x, float y) {
        super(x, y);
    }

    @Override
    public float angle() {
        float angle = (float) Math.atan2(y, x) * MathUtils.radiansToDegrees;
        if (angle < 0) {
            angle += 360;
        }
        return angle;
    }
}
